<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
        </div>
        <div id="grailsLogo" class="logo"><a href="http://grails.org"><img src="${resource(dir:'images',file:'grails_logo.png')}" alt="Grails" border="0" /></a></div>
        <table>
        	<tr>
        		<TD>
        			<g:each var="c" in="${grailsApplication.controllerClasses.sort{ p1, p2 -> p1.logicalPropertyName.compareToIgnoreCase(p2.logicalPropertyName) }}">
	                    <span class="menuButton" style="text-transform: capitalize;"><g:link controller="${c.logicalPropertyName}">${c.logicalPropertyName}</g:link></span>|
	              	</g:each>
	              	<span class="menuButton" style="text-transform: capitalize;"><g:link controller="usuario" action="logout">Sair</g:link></span>&nbsp;|
	           </TD>        	
        	</tr>
        </table>
        <g:layoutBody />
        
    </body>
</html>